<%@ page contentType="text/html; charset=utf-8" %>
<%@page import="org.apache.commons.lang3.StringUtils"%>
<%@ page import="manage.commons.utils.ExcelUtils" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:if test="${pager.list.size() > 0}">
<%
String queryString = request.getQueryString();
if(StringUtils.isEmpty(queryString)){
	queryString = ExcelUtils.EXPORTPARAM;
}else{
	queryString += (queryString != null && queryString.length() > 0) ? "&" : "?";
	queryString += ExcelUtils.EXPORTPARAM;
}
String html = "<div class='exportExcel'><a href=\"" + "?" + queryString.replaceFirst("^\\?", "")+"\" target='exportExcelIframe'>导出Excel文件</a></div>";
%>
<%=html%>
<style rel="stylesheet">
a:link, a:visited {text-decoration:underline; }
.exportExcel{cursor: pointer;text-decoration: underline;width: 100px;}
.exportExcel a{color: red}
</style>
<iframe id="exportExcelIframe" name="exportExcelIframe" src="" style="border: none;padding: 0px;width: 0px;height: 0px;display: none;" frameborder="0" scrolling="no"></iframe>
</c:if>